package com.eascs.web.o2o.scheduler.util;

import com.eascs.common.util.StringUtil;

public class O2oLogType {

	/**
	 * 新建
	 */
	public static String LOAN_STATUS_NEW = "NEW";
	/**
	 * 征信中
	 */
	public static String LOAN_STATUS_Z = "Z";
	/**
	 * 征信完成
	 */
	public static String LOAN_STATUS_ZF = "ZF";
	/**
	 * 内审中
	 */
	public static String LOAN_STATUS_N = "N";
	/**
	 * 内审中动态表单修改
	 */
	public static String LOAN_STATUS_ND = "ND";
	/**
	 * 内审完成
	 */
	public static String LOAN_STATUS_NF = "NF";
	/**
	 * 申报中
	 */
	public static String LOAN_STATUS_S = "S";
	/**
	 * 申报完成
	 */
	public static String LOAN_STATUS_SF = "SF";
	/**
	 * 银行驳回
	 */
	public static String LOAN_STATUS_SN = "SN";
	/**
	 * 已放款/审批通过
	 */
	public static String LOAN_STATUS_O = "O";
	/**
	 * 作废
	 */
	public static String LOAN_STATUS_T = "T";
	/**
	 * 还款完成
	 */
	public static String LOAN_STATUS_HN = "HN";
	/**
	 * 新建上传文件
	 */
	public static String FILE_STATUS_N = "FNEW";
	/**
	 * 修改上传文件
	 */
	public static String FILE_STATUS_U = "FUPD";
	/**
	 * 删除上传文件
	 */
	public static String FILE_STATUS_D = "FDEL";
	/**
	 * 修改品牌
	 */
	public static String BRAND_UPDATE_RD = "RD";
	/**
	 * 修改品牌合作方
	 */
	public static String PARTNER_UPDATE_PT = "PT";
	/**
	 * 新增品牌
	 */
	public static String BRAND_UPDATE_ARD = "ARD";
	/**
	 * 新增品牌合作方
	 */
	public static String PARTNER_UPDATE_APT = "APT";
	/**
	 * 手动结清
	 */
	public static String PARTNER_UPDATE_SETTLE = "SETTLE";

	public static String getStringName(String code) {
		String loan_status_name = "未知类型";
		if (!StringUtil.isEmpty(code)) {
			if (code.equals(LOAN_STATUS_NEW)) {
				loan_status_name = "新增贷款主表信息";
			} else if (code.equals(LOAN_STATUS_Z)) {
				loan_status_name = "征信修改贷款主表信息";
			} else if (code.equals(LOAN_STATUS_ZF)) {
				loan_status_name = "征信完成修改贷款主表信息";
			} else if (code.equals(LOAN_STATUS_N)) {
				loan_status_name = "内审修改贷款主表信息";
			} else if (code.equals(LOAN_STATUS_ND)) {
				loan_status_name = "内审动态表单保证金，管理费，风险保障金修改";
			} else if (code.equals(LOAN_STATUS_NF)) {
				loan_status_name = "内审完成修改贷款主表信息";
			} else if (code.equals(LOAN_STATUS_S)) {
				loan_status_name = "申报修改贷款主表信息";
			} else if (code.equals(LOAN_STATUS_SF)) {
				loan_status_name = "申报通过修改贷款主表信息";
			} else if (code.equals(LOAN_STATUS_O)) {
				loan_status_name = "已放款修改贷款主表信息";
			} else if (code.equals(LOAN_STATUS_T)) {
				loan_status_name = "作废修改贷款主表信息";
			} else if (code.equals(LOAN_STATUS_HN)) {
			/*	loan_status_name = "还款完成修改贷款主表信息";*/
				loan_status_name = "还款结清";
			} else if (code.equals(FILE_STATUS_N)) {
				loan_status_name = "新建上传文件";
			} else if (code.equals(FILE_STATUS_U)) {
				loan_status_name = "修改上传文件";
			} else if (code.equals(FILE_STATUS_D)) {
				loan_status_name = "删除上传文件";
			} else if (code.equals(BRAND_UPDATE_RD)) {
				loan_status_name = "修改品牌";
			} else if (code.equals(PARTNER_UPDATE_PT)) {
				loan_status_name = "修改品牌合作方";
			} else if (code.equals(BRAND_UPDATE_ARD)) {
				loan_status_name = "新增品牌";
			} else if (code.equals(PARTNER_UPDATE_APT)) {
				loan_status_name = "新增品牌合作方";
			}
			else if (code.equals(PARTNER_UPDATE_SETTLE)) {
				loan_status_name = "手动结清";
			}
		}
		return loan_status_name;
	}
}
